# $Id$
# Maintainer:  Ionut Biru <ibiru@archlinux.org>
# Contributor: Daniel Balieiro <daniel@balieiro.com>
pkgbase=python-telepathy
pkgname=('python2-telepathy')
pkgver=0.15.19
pkgrel=5
pkgdesc="Python libraries for use in Telepathy clients and connection managers"
arch=('i686' 'x86_64')
url="http://telepathy.freedesktop.org"
license=('LGPL')
depends=('python2-dbus')
makedepends=('libxslt')
conflicts=('python-telepathy')
replaces=('python-telepathy')
source=(http://telepathy.freedesktop.org/releases/telepathy-python/telepathy-python-${pkgver}.tar.gz{,.asc})
md5sums=('f7ca25ab3c88874015b7e9728f7f3017'
         '3f0e1af0452d62a0c0aab916e045579c')

build() {
    cd "${srcdir}/telepathy-python-${pkgver}"
    ./configure --prefix=/usr
    make
}

package_python2-telepathy() {
    cd "${srcdir}/telepathy-python-${pkgver}"
    make DESTDIR="${pkgdir}" install
    python2 -m compileall "${pkgdir}/usr/lib/python2.7/site-packages/telepathy/"
}
